package predicate;

import java.util.HashMap;

public class Day {
	
	 /** 
	  * Variable.
	  */
	private String dayName;
	private HashMap<String, Session> listSession;
	
	 /** 
	  * Class constructor.
	  */
	public Day()
	{
		dayName = "unknow";
		listSession = new HashMap<String, Session>();
	}
	
	/**
	 * Class constructor
	 * @param _dayName a <code>String</code>
	 */
	public Day( String _dayName )
	{
		dayName = _dayName;
		listSession = new HashMap<String, Session>();
	}
	
	/**
	 * Assessor
	 * @return dayName
	 */
	public String getName()
	{
		return dayName;
	}
	
	/**
	 * Mutator
	 * @param _dayName a <code>String</code>
	 */
	public void setName( String _dayName)
	{
		dayName = _dayName;
	}


	public void addSession(Session session) {
		listSession.put(session.getName(), session);
	}

}